import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import toast from 'components/common/toast'

// 1. 解决移动端300延迟
import  FastClick  from 'fastclick'
// 2.
import VueLazyload from 'vue-lazyload'

// 3.
Vue.use(toast)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')

// 事件总线
Vue.prototype.$bus = new Vue()


// 2. 解决移动端300延迟
FastClick.attach(document.body)

// 3. 图片懒加载

Vue.use(VueLazyload, {
  loading: require('assets/img/common/loading.webp')
})
